/**
 * 
 */
package com.wolfpire.chapter.dao;

import java.util.List;

import com.wolfpire.system.common.base.dao.IBaseHibernateDao;
import com.wolfpire.system.model.OrgUserRelation;
import com.wolfpire.system.model.ProfessionSubjectRelation;
import com.wolfpire.system.model.SubjectChapterRelation;
import com.wolfpire.system.model.SubjectKnowledgeRelation;

/**
 * 用户组织关联表持久层接口
 * @author lihd
 *
 */
public interface SubjectChapterRelationDao extends IBaseHibernateDao<SubjectChapterRelation, Long> {
	
	/**
	 * 绑定专业和学科之间的关系
	 * @param userId
	 * @param orgId
	 */
	public void relate(Long subjectId, Long chapterId);
	
	/**
	 * 获取专业学科关系
	 * @param userId
	 */
	public SubjectChapterRelation getSCRelation(Long chapterId);
	
	/**
	 * 获取组织下的用户
	 * @param orgId	组织id
	 * @return
	 */
	public List<SubjectChapterRelation> getCSRelations(Long subjectId);

}
